{extend name="public/common"}
{block name="body"}
<title>基本设置</title>
</head>
<style type="text/css">
	.bg-1 {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}
 .radius:hover{
 	color: #fff;
	border-color: #66b1ff;
	background-color: #66b1ff;
 }
 span:hover{
 	color: #333;
 }
  .btn-primary {
    color: #fff;
    background-color: #5a98de;
    border-color: #5a98de;
    height: 31px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 24px !important;
}
</style>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 
	系统管理
	<span class="c-gray en">&gt;</span>
	基础设置
	<span class="c-gray en">&gt;</span>
	网站信息设置
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>

<div style="padding:20px;">
  	
  	<div class="new_box">
<div class="page-container">
	<form  action=""  method="post"  enctype="multipart/form-data" class="form form-horizontal" id="form-article-add">
		<div id="tab-system" class="HuiTab">
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">网站开关:</label>
						<div class="formControls col-xs-8 col-sm-9 skin-minimal">
							<div class="radio-box" style="padding-left: 0px;">
								<input name="WZKG" type="radio" id="sex-1" value="1" {$wzkg}/>
								<label for="sex-1">开</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="sex-2" name="WZKG" value="0"{$wzkg_0}>
								<label for="sex-2">关</label>
							</div>
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>
							网站名称：
						</label>
						<div class="formControls col-xs-8 col-sm-9">
							<input type="text" name="title" id="website-title"
								placeholder="控制在25个字、50个字节以内"
								value="{$jichu.title?$jichu.title:''}" class="input-text">
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>
							关键词：
						</label>
						<div class="formControls col-xs-8 col-sm-9">
							<input type="text" name="keyword" id="website-Keywords"
								placeholder="5个左右,8汉字以内,用英文,隔开"
								value="{$jichu.keyword?$jichu.keyword:''}" class="input-text">
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>
							描述：
						</label>
						<div class="formControls col-xs-8 col-sm-9">
							<input type="text" name="miaoshi" id="website-description"
								placeholder="空制在80个汉字，160个字符以内"
								value="{$jichu.miaoshi?$jichu.miaoshi:''}" class="input-text">
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>
							当前logo：
						</label>
						<div class="formControls col-xs-8 col-sm-9">
							<img width="250" height="80"  src="__ATTACHMENT__/{$jichu.logoimg?$jichu.logoimg:'20171113/8c9acbed0672667d0658ba49ea750960.jpg'}" alt="" />
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>
							上传新logo：
						</label>
						<div class="formControls col-xs-8 col-sm-9">
							<span class="btn-upload form-group">
								<input class="input-text upload-url" type="text"name="logoimg" id="test_charu_1" value="{$jichu.logoimg}" readonly nullmsg="请添加附件！"style="width: 200px">
								<a href="javascript:void();"  onclick="addpic(1)" class="btn btn-primary radius upload-btn">
									<i class="Hui-iconfont">&#xe642;</i>
									选择图片
								</a>
							</span>
						</div>
					</div>
			</div>

			
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2">网站关闭显示：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<textarea name="TEST" class="textarea">{$list.test}</textarea>
				</div>
			</div>
			

		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button class="btn btn-primary radius" type="submit" ><i class="Hui-iconfont">&#xe632;</i> 保存</button>
			</div>
		</div>
		
		</div>
			</div>
		<script type="text/javascript">
		function ajaxSubmitForm() {
		   　　　　var option = {
			         　　 url : "{:url('systemsettings/xtsz_ht')}",
			        　　  type : 'POST',
			         　　 dataType : 'json',
			         　　 headers : {"ClientCallMode" : "ajax"}, //添加请求头部
			        　　  success : function(data) {
			           　　	 if(data==1){
			           　　		 alert('更新成功');
			           　　	 }
			           　　	 if(data==2){
			           　　		 alert('更新失败');
			           　　	 }
		          },
		         
		       };
		      $("#form-article-add").ajaxSubmit(option);
		      return false; //最好返回false，因为如果按钮类型是submit,则表单自己又会提交一次;返回false阻止表单再次提交
		  }
		
		</script>
	</form>
		<form enctype="multipart/form-data" id="sky_upform_1" name="sky_upform_1" action="" method="post">
		<input type="file"  name="upfile" id="upfile_1" onchange="submitpic(1)"  style="display:none">	
		</form>	
		</div>

	</div>

	</div>
{/block}

{block name="js"}
<script type="text/javascript" src="__SYSMET__/common.js"></script>
{/block}
